package cn.edu.ecut.se2024.model.supplier_mgmt;

import java.io.Serializable;

@SuppressWarnings("serial")
public class SupplierContact implements Serializable {  // 供应商联系人类
	private int sid;  // 供应商ID
	private int id;  // 联系人ID
	private String name;  // 联系人姓名
	private String phone;  // 联系人电话
	private String position;  // 联系人职位
	private boolean defaults;  // 是否为默认联系人
	
	public SupplierContact() {
		super();
		this.sid = -1;
		this.id = -1;
		this.name = "";
		this.phone = "";
		this.position = "";
		this.defaults = false;
	}
	
	public SupplierContact(int sid, int id, String name, String phone, String position, boolean defaults) {
		super();
		this.sid = sid;
		this.id = id;
		this.name = name;
		this.phone = phone;
		this.position = position;
		this.defaults = defaults;
	}
	
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public boolean isDefaults() {
		return defaults;
	}
	public void setDefaults(boolean defaults) {
		this.defaults = defaults;
	}
}
